package com.olinsports.system.olinsportssystem.manager;

import com.olinsports.system.olinsportssystem.model.Activity;
import com.olinsports.system.olinsportssystem.model.CommodityDetailed;
import com.olinsports.system.olinsportssystem.model.StmUsr;
import com.olinsports.system.olinsportssystem.service.ActivityService;
import com.olinsports.system.olinsportssystem.service.CommodityDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */
@Component
public class ActivityManager {
    @Autowired
    private ActivityService activityService;

    public List<Activity> selectAll() {
        return activityService.selectAll();
    }

    public int insertAll(Activity activity) {
        return activityService.insertAll(activity);
    }

    public int deleteByKey(int actKey) {
        return activityService.deleteByKey(actKey);
    }

    public int updateData(Activity activity) {
        return activityService.updateData(activity);
    }

    public Activity selectByKey(int actKey) {
        return activityService.selectByKey(actKey);
    }

    public int saveOrUpdateActivity(Activity activity) {
        return activityService.saveOrUpdateActivity(activity);
    }

    public Map listActivity(String page, String rows, String sord, String sidx) {
        return activityService.listActivity(page,rows,sord,sidx);
    }
}
